package cn.fanqinghong.ymcc.feignClients;

import cn.fanqinghong.ymcc.doc.CourseDoc;
import cn.fanqinghong.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * FAN
 * 2022/7/24  15:39
 */
@FeignClient(value = "service-search",fallbackFactory = SearchFallbackFactory.class)
public interface CourseSearchFeignClient {
    @PostMapping("/saveCourse")
    JSONResult saveCourse(@RequestBody CourseDoc doc);

    @PostMapping("/deleteCourse")
    JSONResult deleteCourse(@RequestBody CourseDoc doc);
}
